package com.itheima.io.properties.demo01;

import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class PropertiesDemo01 {

    public static void main(String[] args) {

        Properties properties = new Properties();

        properties.put("张三", "23");
        properties.put("李四", "24");
        properties.put("王五", "25");
        properties.put("赵六", "56");

        Set<Map.Entry<Object, Object>> entries = properties.entrySet();
        for(Map.Entry<Object, Object> en : entries) {
            String key =(String) en.getKey();
            String value =(String) en.getValue();
            System.out.println(key + "------------------" + value);
        }

    }

}
